print("请输入所需统计的str：")
str = input()

d = {}
for x in str:
    if x in d:
        d[x] += 1
    else:
        d[x] = 1
print(d)
